home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Packmags
/
NewsFlash - Issue 19 (1991-08)(UGA - NewsFlash UK)(Disk 1 of 2).zip
/
NewsFlash - Issue 19 (1991-08)(UGA - NewsFlash UK)(Disk 1 of 2).adf
/
sources
/
Print.S.pp
/
Print.S
Wrap
Text File
|
1978-01-06
|
721b
|
38 lines
;This routine is just a simple routine to put a ascii string on the
;screen. This sort of information is always very interesting for
;new assembler programmers. If you have some tips just send them to
;Newsflash and we will publish them on future issues..
;
;Source written by C.Pauwe
;
OPENLIB=-408
OUTPUT=-60
WRITE=-48
move.l $04,A6
move.l A0,Txtadr
move.w D0,Lenght+2
lea DOSLIB,A1
jsr openlib(A6)
move.l D0,A6
jsr output(A6)
move.l D0,Dest
move.l D0,D1
move.l Txtadr,D2
move.l Lenght,D3
subq.w #1,D3
beq.s RETURN
jsr write(A6)
RETURN: move.l Dest,D1
move.l #Rchar,D2
move.w #1,D3
jsr write(A6)
clr D0
rts
DEST: DC.L 0
Txtadr: DC.L 0
Lenght: DC.L 0
DOSLIB: DC.B "dos.library",0
Rchar: DC.B 10